/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JInternalFrameMostrarPuntajeEquipo.java
 *
 * Created on 07/11/2009, 10:07:22
 */

package grandtwindows.internas;

/**
 *
 * @author jhonny
 */
public class JInternalFrameMostrarPuntajeEquipo extends javax.swing.JInternalFrame {

    /** Creates new form JInternalFrameMostrarPuntajeEquipo */
    public JInternalFrameMostrarPuntajeEquipo() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelMain = new javax.swing.JPanel();
        labelTitulares = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tableSuplentes = new javax.swing.JTable();
        labelSuplentes = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        tableTitulares = new javax.swing.JTable();
        comboBoxFechas = new javax.swing.JComboBox();
        labelFechas = new javax.swing.JLabel();
        labelPuntos = new javax.swing.JLabel();
        textFieldPuntos = new javax.swing.JTextField();
        buttonOk = new javax.swing.JButton();

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(grandtwindows.GranDTWindowsApp.class).getContext().getResourceMap(JInternalFrameMostrarPuntajeEquipo.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        panelMain.setName("panelMain"); // NOI18N

        labelTitulares.setText(resourceMap.getString("labelTitulares.text")); // NOI18N
        labelTitulares.setName("labelTitulares"); // NOI18N

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        tableSuplentes.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"Arquero", null, null},
                {"Defensor", null, null},
                {"Defensor", null, null},
                {"Defensor", null, null},
                {"Defensor", null, null},
                {"Volante", null, null},
                {"Volante", null, null},
                {"Volante", null, null},
                {"Volante", null, null},
                {"Delantero", null, null},
                {"Delantero", null, null}
            },
            new String [] {
                "Posicion", "Nombre", "Puntos"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tableSuplentes.setName("tableSuplentes"); // NOI18N
        jScrollPane2.setViewportView(tableSuplentes);

        labelSuplentes.setText(resourceMap.getString("labelSuplentes.text")); // NOI18N
        labelSuplentes.setName("labelSuplentes"); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        tableTitulares.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"Arquero", null, null},
                {"Defensor", null, null},
                {"Volante", null, null},
                {"Delantero", null, null}
            },
            new String [] {
                "Posición", "Nombre", "Puntos"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, true
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tableTitulares.setName("tableTitulares"); // NOI18N
        jScrollPane3.setViewportView(tableTitulares);

        comboBoxFechas.setName("comboBoxFechas"); // NOI18N
        comboBoxFechas.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                comboBoxFechasItemStateChanged(evt);
            }
        });

        labelFechas.setText(resourceMap.getString("labelFechas.text")); // NOI18N
        labelFechas.setName("labelFechas"); // NOI18N

        labelPuntos.setText(resourceMap.getString("labelPuntos.text")); // NOI18N
        labelPuntos.setName("labelPuntos"); // NOI18N

        textFieldPuntos.setText(resourceMap.getString("textFieldPuntos.text")); // NOI18N
        textFieldPuntos.setName("textFieldPuntos"); // NOI18N

        buttonOk.setText(resourceMap.getString("buttonOk.text")); // NOI18N
        buttonOk.setName("buttonOk"); // NOI18N
        buttonOk.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonOkActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelMainLayout = new javax.swing.GroupLayout(panelMain);
        panelMain.setLayout(panelMainLayout);
        panelMainLayout.setHorizontalGroup(
            panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMainLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelMainLayout.createSequentialGroup()
                        .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 384, Short.MAX_VALUE)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, 0, 0, Short.MAX_VALUE)
                            .addGroup(panelMainLayout.createSequentialGroup()
                                .addComponent(labelSuplentes)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 333, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelMainLayout.createSequentialGroup()
                        .addComponent(labelFechas)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(comboBoxFechas, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 22, Short.MAX_VALUE)
                        .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelMainLayout.createSequentialGroup()
                                .addComponent(textFieldPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addContainerGap())
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelMainLayout.createSequentialGroup()
                                .addComponent(labelPuntos)
                                .addGap(57, 57, 57))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelMainLayout.createSequentialGroup()
                        .addComponent(buttonOk)
                        .addContainerGap())
                    .addGroup(panelMainLayout.createSequentialGroup()
                        .addComponent(labelTitulares)
                        .addContainerGap(336, Short.MAX_VALUE))))
        );
        panelMainLayout.setVerticalGroup(
            panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMainLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelFechas)
                    .addGroup(panelMainLayout.createSequentialGroup()
                        .addGroup(panelMainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(comboBoxFechas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(labelPuntos))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(textFieldPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(labelTitulares)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(labelSuplentes)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addComponent(buttonOk)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelMain, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panelMain, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonOkActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonOkActionPerformed

    private void comboBoxFechasItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_comboBoxFechasItemStateChanged
        // TODO add your handling code here:
    }//GEN-LAST:event_comboBoxFechasItemStateChanged


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonOk;
    private javax.swing.JComboBox comboBoxFechas;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JLabel labelFechas;
    private javax.swing.JLabel labelPuntos;
    private javax.swing.JLabel labelSuplentes;
    private javax.swing.JLabel labelTitulares;
    private javax.swing.JPanel panelMain;
    private javax.swing.JTable tableSuplentes;
    private javax.swing.JTable tableTitulares;
    private javax.swing.JTextField textFieldPuntos;
    // End of variables declaration//GEN-END:variables

}
